﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PloobsEngine.Cameras;
using PloobsEngine.MessageSystem;

namespace Etapa1.Screens
{
    public class CameraPrimeiraPessoaHandler : SystemRecieverMessage
    {

        CameraFirstPerson cam;
        public CameraPrimeiraPessoaHandler(CameraFirstPerson cameraAtual)
        {
            this.cam = cameraAtual;
        }

        public override void HandleMessage(Message mes)
        {
            if (mes.Cod == TURNONMOUSE)
            {
                bool a = (bool ) mes.Content;
                cam.EnableMouse(a);
            }
            
        }

        public static readonly string TURNONMOUSE = "CameraPrimeiraPessoaHandler_MOUSEON";
    }
}
